package com.fml.ft_study.service;
import com.fml.ft_study.dao.employeeDAO;
import com.fml.ft_study.domain.Employee;

public class EmployeeService {
    private employeeDAO employeedao=new employeeDAO();

    public Employee login(String empid, String pwd){

        Employee o =  employeedao.querySingle("SELECT * FROM  employee WHERE empId=? and pwd=MD5(?);", Employee.class, empid, pwd);
        return o;
    }
}
